<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th></th>
		    <th></th>
		</tr>
	</thead>
	<tbody>
	<g:each in="${alunoInstanceList}" status="i" var="alunoInstance">
		<tr >
		
		    <td><img src="${resource(dir: 'images/alunos', file: alunoInstance.id.toString() )}" 
		        width="90" height="120" contextPath="/" alt="Foto"/>
		        </td>
		
			<td>
			    <div>
			        <b><g:link action="show" id="${alunoInstance.id}">${fieldValue(bean: alunoInstance, field: "nome")}</g:link>
		            </b>
		        </div>
		        <div>
		            <g:if test="${alunoInstance?.matriculaAtiva}">
		                <span><b><g:message code="turma.label" default="Turma" /></b></span>
		                <span class="label label-info">
		                    ${alunoInstance?.matriculaAtiva?.turma?.serie} - 
		                    ${alunoInstance?.matriculaAtiva?.turma?.nome} /
		                    ${alunoInstance?.matriculaAtiva?.turma?.ano}
		                </span>
		            </g:if>
		            <g:else>
		                <span class="label label-important">
                            <g:message code="aluno.inativo" default="Aluno Inativo" />
                        </span>
		            </g:else>
		        </div>
			</td>
		</tr>
	</g:each>
	</tbody>
</table>
<div class="pagination" align="center">
	<g:paginate total="${alunoInstanceTotal}" />
</div>
